<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="menu">
    <ul class="menuUL">
        <li class="current_page_item">
            <c:choose>
                <c:when test="${userLevel == 1}">
                    <a href="student_home.jsp">
                    </c:when>
                    <c:when test="${userLevel == 2}">
                        <a href="leraar_home.jsp">
                        </c:when>
                        <c:when test="${userLevel == 3}">
                            <a href="admin_home.jsp">
                            </c:when>
                            <c:when test="${userLevel == null}">
                                <a href="visitor_home.jsp">
                                </c:when>
                            </c:choose>

                            Home

                        </a></li>
                        <li><a href="about.jsp">About 32L</a></li>



                        <c:if test="${userLevel == null}">
                            <li class="last"><a href="subscribe_to_course?tryOut=true">Courses</a></li>
                        </c:if>
                        <c:if test="${userLevel != null}">
                            <li class="last"><a href="subscribe_to_course">Courses</a></li>
                        </c:if>


                        <c:if test="${userLevel != null}"> <li class="   <% if (request.getRequestURI().equals("/32LNew/login.jsp") || request.getRequestURI().equals("/32LNew/visitor_home.jsp")) {
                                out.println("Login");
                            } else {
                                out.println("Logout");
                            }%>

                            ">



                                <a href="

                                   <% if (request.getRequestURI().equals("/32LNew/login.jsp") || request.getRequestURI().equals("/32LNew/visitor_home.jsp")) {
                                           out.println("login");
                                       } else {
                                           out.println("logout");
                                       }%>

                                   ">

                                    <% if (request.getRequestURI().equals("/32LNew/login.jsp") || request.getRequestURI().equals("/32LNew/visitor_home.jsp")) {
                                            out.println("Login");
                                        } else {
                                            out.println("Logout " + (String)request.getSession().getAttribute("userName"));
                                        }%>        
                                </a></li></c:if>



                        <c:if test="${userLevel == null}">

                            <li class="Login"><a href="login">Login</a></li>

                        </c:if>




                        </ul>
                        <ul class="languageWrapper">
                            <li> <p class="textCenter"> Language </p> </li>

                            <li class="flag-wrapper">
                                <%@include file="flags.jsp"%>
                            </li>
                        </ul>
                        </div>
